package com.iven.xie.encrypt.bean;

import com.iven.xie.encrypt.enums.DecryptBodyMethod;
import com.iven.xie.encrypt.enums.EncryptBodyMethod;
import com.iven.xie.encrypt.enums.SHAEncryptType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author xiezhendong
 * @date 2021/8/30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel("加密参数")
public class EncryptBody {

    @ApiModelProperty(value = "加密类型")
    private EncryptBodyMethod encryptBodyMethod;

    @ApiModelProperty(value = "解密类型")
    private DecryptBodyMethod decryptBodyMethod;

    @ApiModelProperty(value = "DES-KEY/AES-KEY")
    private String key;

    @ApiModelProperty(value = "SHA加密类型")
    private SHAEncryptType shaEncryptType;

    @ApiModelProperty(value = "目标解密字符串")
    private String formatStringBody;

    @ApiModelProperty(value = "原始数据加密后")
    private String encryptData;

    @ApiModelProperty(value = "原始数据解密后")
    private String decodeData;
}
